package ren.xbcr.schoolbus.client.domain;

/**
 * Created by Jian on 2015/12/5.
 */
public class DriverRating {
    private BusDriver busDriver;
    private LoginUser loginUser;
    private Integer ratingNumber;
    private String description;

    public DriverRating(Integer ratingNumber, Long busDriverId, String telephoneNum, String description){
        this.ratingNumber = ratingNumber;
        this.description = description;
        LoginUser loginUser = new LoginUser();
        loginUser.setTelephoneNumber(telephoneNum);
        this.loginUser = loginUser;

        BusDriver busDriver = new BusDriver();
        busDriver.setId(busDriverId);
        this.busDriver = busDriver;
    }

    public BusDriver getBusDriver() {
        return busDriver;
    }

    public void setBusDriver(BusDriver busDriver) {
        this.busDriver = busDriver;
    }

    public LoginUser getLoginUser() {
        return loginUser;
    }

    public void setLoginUser(LoginUser loginUser) {
        this.loginUser = loginUser;
    }

    public Integer getRatingNumber() {
        return ratingNumber;
    }

    public void setRatingNumber(Integer ratingNumber) {
        this.ratingNumber = ratingNumber;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
